home *** CD-ROM | disk | FTP | other *** search
/ Sierra's Sneak Peeks 1993 / Sierra Sneak Peeks 1993.iso / demo.bat next >
DOS Batch File  |  1993-08-25  |  7KB  |  246 lines

  1. @echo off
  2. goto Begin
  3.  
  4. :SetVer
  5. echo Sierra Family Demo CD-ROM - Version 2.0 8/26/93 BC >c:\sierra\democd\version.dat
  6. goto Welcome
  7.  
  8. rem ---------------------------------------------------------------------------
  9. rem
  10. rem              Sierra Family Demonstration CD-ROM Menu System
  11. rem                 Copyright (c) 1993 Sierra On-Line, Inc.
  12. rem                            All Rights Reserved
  13. rem
  14. rem ---------------------------------------------------------------------------
  15. rem  SHOW.EXE     Copyright (c) 1993 Sierra On-Line, Inc., All Rights Reserved.
  16. rem  VTEST.EXE    Copyright (c) 1993 Sierra On-Line, Inc., All Rights Reserved.
  17. rem  DELAY.EXE    Copyright (c) 1993 Sierra On-Line, Inc., All Rights Reserved.
  18. rem  GETCPU.EXE   Copyright (c) 1993 Sierra On-Line, Inc., All Rights Reserved.
  19. rem  GETKEY.COM   Copyright (c) 1993 Sierra On-Line, Inc., All Rights Reserved.
  20. rem  MEMSIZE.EXE  Copyright (c) 1993 Sierra On-Line, Inc., All Rights Reserved.
  21. rem  AUTODEMO.EXE Copyright (c) 1993 Sierra On-Line, Inc., All Rights Reserved.
  22. rem  WHAT.EXE    is public domain, to the best of our information.
  23. rem
  24. rem  The individual contents of the subdirectories within the SIERRA, DYNAMIX,
  25. rem  BRGHTSTR, COKTEL, and TSN directories on this CD-ROM drive are copyrighted
  26. rem  works as indicated by the copyright notifications on the programs within
  27. rem  those directories.
  28. rem
  29. rem  The entire CD-ROM compilation is Copyright (c) 1993 Sierra On-Line, Inc.
  30. rem  All Rights Reserved.
  31. rem ---------------------------------------------------------------------------
  32. rem  If you're reading this comment, then obviously you like to hack around
  33. rem  in other folks code.  Perhaps you had a problem running this menuing 
  34. rem  system, and are trying to figure out how to make it work manually.  If
  35. rem  that's the case, call our support line and let us know what problem you
  36. rem  are having.  Perhaps you're just curious how it all works.  If so, have
  37. rem  fun exploring!
  38. rem ---------------------------------------------------------------------------
  39. rem  DEMONSTRATION CD-ROM COMPILATION DEVELOPMENT CREDITS:
  40. rem 
  41. rem  Designed, Produced, and Directed by Bill Crow
  42. rem 
  43. rem  Programming: Bill Crow, Robert W. Lindsley, Mark Wilden, Dan Foy, Ken Koch
  44. rem 
  45. rem  Art: Frankie Powell, Bill Crow, Mark Hood
  46. rem 
  47. rem  Text: Josh Mandel, Bill Crow
  48. rem 
  49. rem  QA: Sharon Simmons, Michael Brosius, Lynne S. Dayton, Mike Jones,
  50. rem      Roger Clendenning, Doug Wheeler, Dave Clingman, Matthew Genesi,
  51. rem      Diana Mulligan
  52. rem 
  53. rem ---------------------------------------------------------------------------
  54.  
  55. :Begin
  56. if "%0"=="demo" goto startok
  57. if "%0"=="Demo" goto startok
  58. if "%0"=="DEMO" goto startok
  59. cls
  60. echo.
  61. echo To run the Sierra family demonstration CD-ROM, switch to your CD-ROM
  62. echo drive at the dos prompt by typing the drive letter followed by a colon.
  63. echo Then type DEMO.
  64. echo.
  65. echo.
  66. goto alldone
  67.  
  68. :startok
  69. set what=
  70. set getkey=
  71. set xxv=
  72. set xxp=
  73. set xxd=
  74. set xxc=
  75. set xxw=
  76. set xxa=
  77. menu\what e
  78. if errorlevel 50 goto envok
  79. echo.
  80. echo To run the Sierra family demonstration CD-ROM, you must have at least
  81. echo 50 bytes of free space reserved for environment variables.  Currently
  82. echo your system has only %what% bytes of free envionment space.  This free
  83. echo space is controlled by the /E option on the SHELL= command in your
  84. echo CONFIG.SYS file.  Refer to your DOS documentation for more information
  85. echo about setting this option to create additional environment variable
  86. echo space.  If a value is already present, increase it by 50.  If no value
  87. echo is present, add the option with a value of 256.
  88. echo.
  89. echo.
  90. goto alldone
  91.  
  92. :envok
  93. menu\getcpu > NUL
  94. if errorlevel 3 goto procok
  95. echo.
  96. echo The Sierra family demonstration CD-ROM requires a system with a 386 or
  97. echo better processor.  It will not run on systems with 286 processors.
  98. echo.
  99. echo.
  100. goto alldone
  101.  
  102. :procok
  103. menu\what d
  104. if errorlevel 50 goto dosok
  105. echo.
  106. echo The Sierra family demonstration CD-ROM requires MS-DOS 5.0 or greater to
  107. echo be installed on your system.
  108. echo.
  109. echo.
  110. goto alldone
  111.  
  112. :dosok
  113. set xxv=F
  114. if "%1"=="" goto TestVesa
  115. if "%1"=="t" goto VokCont
  116. if "%1"=="T" goto VokCont
  117.  
  118. :TestVesa
  119. menu\vtest
  120. if not errorlevel 1 goto VesaOK
  121. cls
  122. echo.
  123. echo In addition to the numerous product demonstrations, this Sierra Family 
  124. echo Demonstration CD-ROM also includes a high resolution, color graphics menu 
  125. echo and product information display system.  A VESA compatible VGA video card 
  126. echo with at least 512k bytes of video memory is required to access the menus
  127. echo and product displays in graphics mode.  Some demos also require VESA.
  128. echo.
  129. echo Most new VGA video cards are VESA compatible.  In many cases, this may
  130. echo require a VESA driver to be loaded via the AUTOEXEC.BAT or CONFIG.SYS
  131. echo file at system startup.  Consult the manual that came with your video 
  132. echo card, or contact the card manufacturer for additional information.
  133. echo.
  134. echo For older VGA video cards that are not VESA compatible or did not ship
  135. echo with a VESA driver, it may still be possible to achieve VESA compatibility
  136. echo using one of the drivers available in the VESA subdirectory on this CD-ROM.
  137. echo Take a look at the README file found in the VESA subdirectory for more 
  138. echo information about installing and configuring the appropriate VESA driver.
  139. echo.
  140. echo if you do not have VESA compatiblity, you can access the menus and product
  141. echo information displays in text mode.
  142. echo.
  143. echo Do you want to continue in text mode? (Y/N)
  144. menu\getkey YN
  145. if not "%getkey%"=="Y" goto alldone
  146. goto VokCont
  147.  
  148. :VesaOK
  149. set xxv=T
  150.  
  151. :VokCont
  152. menu\memsize 567
  153. if errorlevel 1 goto memok
  154. echo.
  155. echo The Sierra family demonstration CD-ROM requires at least 580,000 bytes
  156. echo (567K) of free memory for proper operation.  A utility is provided to 
  157. echo create a boot diskette that will configure your system to maximize free 
  158. echo memory for running this demonstration CD-ROM
  159. echo.
  160. echo Do you want to run the Boot Disk Utility at this time?
  161. menu\getkey YN
  162. if not "%getkey%"=="Y" goto alldone
  163. cls
  164. bootdisk\bootdisk -c
  165. echo.
  166. echo.
  167. echo.
  168. echo Press any key to continue.
  169. menu\getkey
  170. goto alldone
  171.  
  172. :memok
  173. menu\what ye
  174. set xxd=%what%
  175. menu\what y
  176. set xxp=%what%
  177. set xxc=%what%
  178. if not "%xxp%"=="\" set xxp=%xxp%\
  179. set what=
  180.  
  181. if exist c:\sierra\democd\version.dat goto SetVer
  182.  
  183. cls
  184. md c:\sierra >nul
  185. cls
  186. md c:\sierra\democd >nul
  187. cls
  188. echo Sierra >c:\sierra\democd\version.dat
  189. if exist c:\sierra\democd\version.dat goto SetVer
  190.  
  191. cls
  192. echo It was not possible to build the required \SIERRA\DEMOCD directory on
  193. echo the C: drive.  This step is required to properly run these demonstrations.
  194. echo This may be caused if your C: drive has no available space, or if it is
  195. echo write protected.
  196. echo.
  197. echo.
  198. echo.
  199. goto alldone
  200.  
  201. :Welcome
  202. %xxd%:
  203. cd %xxc%
  204.  
  205. if "%xxv%"=="T" goto DoCp
  206. cls
  207. echo.
  208. echo.
  209. echo.
  210. echo.
  211. echo.
  212. echo.
  213. echo         Copyright 1993 Sierra On-Line, Inc.   All Rights Reserved
  214. echo.
  215. echo.
  216. echo.
  217. echo.
  218. echo.
  219. echo.
  220. menu\delay 15
  221. cls
  222. goto RunDemo
  223.  
  224. :DoCp
  225. menu\show screens\cpyright.pcx 20
  226. menu\delay 10
  227. if "%1"=="a" menu\AutoDemo.bat
  228. if "%1"=="A" menu\AutoDemo.bat
  229.  
  230. :RunDemo
  231. menu\mainmenu.bat
  232.  
  233. :alldone
  234. set what=
  235. set getkey=
  236. set xxv=
  237. set xxp=
  238. set xxd=
  239. set xxc=
  240. set xxw=
  241. set xxa=
  242. echo.
  243. echo.
  244. echo.
  245. echo.
  246.